-- GENERATED SPELL FOR [Nightlash] --


function spell0_1983(pUnit, Event) --@Spirit Steal,Heal--
pUnit:FullCastSpellOnTarget(3477,pUnit)
pUnit:RegisterEvent('Sorts_1983', 2000, 1)
end

function spell1_1983(pUnit, Event) --@Wail of Nightlash,n/a--
pUnit:FullCastSpellOnTarget(3485,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1983', 15000, 1)
end

function Sorts_1983(pUnit, Event)
local choix_sorts_1983 = math.random(0, 1)
if choix_sorts_1983 == 0 then
pUnit:RegisterEvent('spell0_1983', 1, 1)
end
if choix_sorts_1983 == 1 then
pUnit:RegisterEvent('spell1_1983', 1, 1)
end
end

function mob1983_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1983', math.random(1500, 3000), 1)
end

function mob1983_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1983_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1983_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1983, 1, 'mob1983_Action')
RegisterUnitEvent(1983, 2, 'mob1983_Leave')
RegisterUnitEvent(1983, 3, 'mob1983_Kill')
RegisterUnitEvent(1983, 4, 'mob1983_Die')
